package com.ruoyi.system.service.vantservice.teamservice.impl;

import com.ruoyi.system.domain.construction.strategy.ConstructionStrategy;
import com.ruoyi.system.domain.construction.strategy.ConstructionStrategyCase;
import com.ruoyi.system.domain.construction.strategy.ConstructionStrategyDetail;
import com.ruoyi.system.domain.zhuangxiumain.vo.IntroductionVideoVo;
import com.ruoyi.system.mapper.vant.team.ApiStrategyMapper;
import com.ruoyi.system.service.vantservice.teamservice.ApiStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApiStrategyServiceImpl implements ApiStrategyService{

    @Autowired
    private ApiStrategyMapper strategyMapper;

    /**
     * 查询施工攻略列表
     * @return
     */
    public List<ConstructionStrategy> selectConstructionStrategyList(){
        return strategyMapper.selectConstructionStrategyList();
    }

    /**
     * 查询施工攻略视频全部
     * @return
     */
    @Override
    public List<IntroductionVideoVo> selectIntroductionVideoVo() {
        return strategyMapper.selectIntroductionVideoVo();
    }

    /**
     * 查询施工攻略原文信息
     * @param strategyId
     * @return
     */
    public ConstructionStrategyDetail selectStrategyDetail(Long strategyId){
        return strategyMapper.selectStrategyDetail(strategyId);
    }

    /**
     * 查询施工攻略原文案例说明列表
     * @param strategyDetailId
     * @return
     */
    public List<ConstructionStrategyCase> selectStrategyCaseList(Long strategyDetailId){
        return strategyMapper.selectStrategyCaseList(strategyDetailId);
    }
}
